/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

import java.io.Serializable;
import java.sql.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 *
 * @author Thiago
 */
@Entity
@Table(name = "marca")
@SequenceGenerator(name="sequencia", sequenceName="marca_idmarca_seq")
public class BitacoraModel implements Serializable {

    private int idbitacora;
    private String acao;
    private String usuario;
    private String pagina;
    private String script;
    private Date datainstrucao;

    public BitacoraModel() {
    }
    
    public BitacoraModel(String acao, String usuario, String pagina, String script, Date data){
        this.acao = acao;
        this.usuario = usuario;
        this.pagina = pagina;
        this.script = script;
        this.datainstrucao = data;
    }
    
    public BitacoraModel(String usuario, String pagina){
        this.usuario = usuario;
        this.pagina = pagina;
    }
    
    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="sequencia")
    public int getIdbitacora() {
        return idbitacora;
    }

    public void setIdbitacora(int idbitacora) {
        this.idbitacora = idbitacora;
    }

    public String getAcao() {
        return acao;
    }

    public void setAcao(String acao) {
        this.acao = acao;
    }

    public String getUsuario() {
        return usuario;
    }

    public void setUsuario(String usuario) {
        this.usuario = usuario;
    }

    public String getPagina() {
        return pagina;
    }

    public void setPagina(String pagina) {
        this.pagina = pagina;
    }

    public String getScript() {
        return script;
    }

    public void setScript(String script) {
        this.script = script;
    }

    public Date getDatainstrucao() {
        return datainstrucao;
    }

    public void setDatainstrucao(Date datainstrucao) {
        this.datainstrucao = datainstrucao;
    }
}
